package com.starblink.preferenceconfig.bean

import com.starblink.rocketreserver.ListPreferenceConfigABTestQuery.PreferenceList
import com.starblink.rocketreserver.ListSimilarPreferenceBrandConfigQuery.ListSimilarPreferenceBrandConfig

/**
 * 兴趣Bean
 */
data class PreferenceInterest constructor(val id: Int, val name: String?, val image: String?) {
    public var isChecked = false // 是否已选择

    constructor(interest: PreferenceList) : this(
        (interest.userInterestIdList!![0] as Double).toInt(),
        interest.name,
        interest.image
    )
}